﻿package Game.LogicSystem.Objects {
	import Game.LogicSystem.Objects.ObjectClass;
	
	public class BatClass extends ObjectClass{
		
		// Constants:
		// Public Properties:
		
		// Private Properties:
		private var is_Creating:Boolean = false;
		// Initialization:
		public function BatClass(_posx:int,_posy:int,_type:String,_ObjName:String,_ObjectManager:*) {
			super(_posx,_posy,_ObjName,_ObjectManager,0);
		}
		public function getCreableList():Array{
			if(!is_Creating){
				var creableArray:Array= new Array();
				var currentMoney:int = m_Parent.getMoneyValue();
				var baseArray:Array = m_Parent.getObjectListArray();
				for(var i:int=0;i<baseArray.length;i++){
					if(baseArray[i].ObjectPrice <= currentMoney){
						creableArray.push(new Array(baseArray[i].ObjectPrice,baseArray[i].ObjectName,baseArray[i].ObjectClassName));
					}
				}
				return creableArray;
			}else{
				return new Array();
			}
		}
	
		// Public Methods:
		// Protected Methods:
	}
	
}